﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ExpenseSystem.Common
{
    public static class Variable
    {
        /// <summary>
        /// 当前程序的执行目录，Global初始化时赋值
        /// </summary>
        public static string EXEC_PATH { get; set; }
        /// <summary>
        /// 全局错误代号，系统因故无法启动时赋值
        /// </summary>
        public static string INNER_ERROR{ get; set; }

        /// <summary>
        /// 在批量处理时遇到错误的处理方法True：终止操作并回滚，False：忽略错误继续操作
        /// </summary>
        public static bool TERM_IN_ERR_BATCH { get; set; }

        public static int VOUCH_REF_TYPE { get { return 0; } }//下游凭据的参考类型，0=参考客户，1=参考订单，2=参考直接上游

        public static string DB_CONN { get; set; }
        public static int KILL_TRANS_PERIOD { get; set; }
        public static int TRANS_TTL { get; set; }
    }
}
